//
//  WaitingView.h
//  Chamleon-template
//
//  Created by YLW on 15/10/21.
//
//

#import <UIKit/UIKit.h>
typedef enum{
    WaitingViewTextalignLet = 0,
    WaitingViewTextalignCenter,
    WaitingViewTextalignRight
}WaitingViewTextalign;

typedef enum{
    WaitingViewStyleBlack,
    WaitingViewStyleWhite
}WaitingViewStyle;
@interface NativeUIWaitInfo : NSObject


@property (nonatomic , assign)CGFloat width;

@property (nonatomic , assign)CGFloat height;

@property (nonatomic , strong)UIColor *color;

@property (nonatomic , assign)NSInteger size;

@property (nonatomic , assign)WaitingViewTextalign textalign;

@property (nonatomic , assign)CGFloat padding;

@property (nonatomic , strong)UIColor *background;

@property (nonatomic , assign)WaitingViewStyle style;

@property (nonatomic , assign)BOOL modal;

@property (nonatomic , assign)CGFloat round;

@property (nonatomic , assign)BOOL padlock;

@property (nonatomic , copy)NSString *title;

@property (nonatomic , assign)NSInteger times;

//+ (instancetype)nativeUIWaitInfo:(NSDictionary *)dict;
//- (instancetype)initWithDict:(NSDictionary *)dict;

- (void)setNativeUIWaitInfo:(NSDictionary *)dict;

@end

@interface WaitingView : UIView

@property (nonatomic , strong)UILabel *timeLabel;

@property (nonatomic , strong)UILabel *titleLabel;

@property (nonatomic , strong)UIActivityIndicatorView *activityIndicatiorView;

@property (nonatomic , strong)NativeUIWaitInfo *viewInfo;

@property (nonatomic , copy)void(^disMissVc)();

@property (nonatomic , strong)NSTimer *timer;

+ (instancetype)sharedWaitingView;
@end
